/*
 * Copyright (c) 2019. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */

package com.evenmo.string;

/**
 * This is Description
 *
 * @author moyongjun
 * @date 2019/11/06
 */
public class TestTryCatch {

    public static void main(String[] args) {
        int res= getValue();
        System.out.println("finally---res="+res);
    }

    private static int getValue() {
        int a=1;
        try {

            System.out.println(a);
            return a++;
        }finally {
            System.out.println(a);
        }
    }
}
